const array = [1, 2, 3];

for (let [key, value] of array.entries()) {
    console.log(key, value);
}

for (let key of array.keys()) {
    console.log(key);
}

for (let value of array.values()) {
    console.log(value);
}
